package com.sais.manage.boot.repair.dto;

import com.sais.manage.boot.repair.entity.Repair;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 宿舍管理平台- 维修申请 保存DTO
 *
 * @author zwp
 * @date 2020/2/2
 */
@Data
@NoArgsConstructor
public class RepairSaveDTO {

    private String ukId;
    private String name;
    private String roomId;
    private String phone;
    private String content;

    private LocalDateTime comingTime;

    private List<String> propertyIds;

    public Repair convert() {
        Repair repair = new Repair();
        BeanUtils.copyProperties(this, repair);
        return repair;
    }

}
